We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392583 - Listing truncates long lines
Summary: Listing truncates long lines
Status: CLOSED WONTFIX
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.15.xx
Hardware: All All
: Medium normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2019-07-28 14:54 PDT by E. C. Masloch
Modified: 2019-08-09 02:20 PDT (History)
5 users (show)

Obtained from: Built from git using configure
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2019-07-28 14:54:44 PDT
When assembling the BIOS of tiny8086 I encountered very long lines. In the listing, these are truncated by NASM. The following example is from this line: https://github.com/adriancable/8086tiny/blob/c79ca2a34d96931d55ef724c815b289d0767ae3a/bios_source/bios.asm#L3822


xlat_ids       db      9, 9, 9, 9, 7, 7, 25, 26, 9, 9, 9, 9, 7, 7, 25, 48, 9, 9, 9,
 9, 7, 7, 25, 26, 9, 9, 9, 9, 7, 7, 25, 26, 9, 9, 9, 9, 7, 7, 27, 28, 9, 9, 9, 9, 7
, 7, 27, 28, 9, 9, 9, 9, 7, 7, 27, 29, 9, 9, 9, 9, 7, 7, 27, 29, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 51, 5
4, 52, 52, 52, 52, 52, 52, 55, 55, 55, 55, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 15, 15, 24, 24, 9, 9, 9, 9, 10, 10, 10, 10, 16,
 16, 16, 16, 16, 16, 16, 16, 30, 31, 32, 53, 33, 34, 35, 36, 11, 11, 11, 11, 17, 17
, 18, 18, 47, 47, 17, 17, 17, 17, 18, 18, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 12, 12, 19, 19, 37, 37, 20, 20, 49, 50, 19, 19, 38, 39, 40, 19, 12, 12, 12,
12, 41, 42, 43, 44, 53, 53, 53, 53, 53, 53, 53, 53, 13, 13, 13, 13, 21, 21, 22, 22,
 14, 14, 14, 14, 21, 21, 22, 22, 53, 0, 23, 23, 53, 45, 6, 6, 46, 46, 46, 46, 46, 4
6, 5, 5
$ oldnasm -v
NASM version 2.15rc0 compiled on Dec 28 2018
$ oldnasm test.asm -l test.lst
$ cat test.lst
     1 00000000 090909090707191A09-     xlat_ids       db      9, 9, 9, 9, 7, 7, 25
, 26, 9, 9, 9, 9, 7, 7, 25, 48, 9, 9, 9, 9, 7, 7, 25, 26, 9, 9, 9, 9, 7, 7, 25, 26,
 9, 9, 9, 9, 7, 7, 27, 28, 9, 9, 9, 9, 7, 7, 27, 28, 9, 9, 9, 9, 7, 7, 27, 29, 9, 9
, 9, 9, 7, 7, 27, 29, 2, 2, 2, 2, 2, 2, 2, 2,
     1 00000009 090909070719300909-
     1 00000012 09090707191A090909-
     1 0000001B 090707191A09090909-
     1 00000024 07071B1C0909090907-
     1 0000002D 071B1C090909090707-
     1 00000036 1B1D0909090907071B-
     1 0000003F 1D0202020202020202-
     1 00000048 020202020202020203-
     1 00000051 030303030303030404-
     1 0000005A 040404040404333634-
     1 00000063 343434343437373737-
     1 0000006C 343434340000000000-
     1 00000075 000000000000000000-
     1 0000007E 0000080808080F0F18-
     1 00000087 18090909090A0A0A0A-
     1 00000090 10101010101010101E-
     1 00000099 1F2035212223240B0B-
     1 000000A2 0B0B111112122F2F11-
     1 000000AB 111111121201010101-
     1 000000B4 010101010101010101-
     1 000000BD 0101010C0C13132525-
     1 000000C6 141431321313262728-
     1 000000CF 130C0C0C0C292A2B2C-
     1 000000D8 35353535353535350D-
     1 000000E1 0D0D0D151516160E0E-
     1 000000EA 0E0E15151616350017-
     1 000000F3 17352D06062E2E2E2E-
     1 000000FC 2E2E0505
$
Comment 1 H. Peter Anvin 2019-08-07 17:57:24 PDT
This is intentional, although I did check in a patch that should add an ellipsis to the end of the line to make it clear it has been truncated.

If you feel this is the wrong behavior, let's discuss why.
Comment 2 E. C. Masloch 2019-08-09 02:20:06 PDT
I tested the new behaviour, it does now add the ellipsis after the (now expanded) maximum line length. This is fine by me. (I already cut up the long lines in 8086tiny's bios.asm in my fork.)